// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_c;

import java.util.Vector;

public class cls_e
{

    public cls_e()
    {
        a = new Vector();
    }

    public Object a()
    {
    	Object obj =null;
        Vector vector = a;
         
        if(a.size() <= 0) {
        	try
            {
                a.wait();
            }
            catch(Exception exception1) { }
            obj = b();
            
        }

        	return obj;
 
    }

    public Object a(int i)
    {
        Vector vector = a;
       
        Object obj = a.remove(i);
        return obj;
    }

    public void a(int i, Object obj)
    {
        if(obj != null) {
        	Vector vector = a;
            
            a.add(i, obj);
            a.notify();
            
        }
    }

    public void a(Object obj)
    {
        if(obj != null) {
        	Vector vector = a;
            
            a.addElement(obj);
            a.notify();
        }
 
    }

    public Object b()
    {
        Vector vector = a;
         
        Object obj;
        if(a.size() > 0)
        {
            obj = a.elementAt(0);
            a.removeElementAt(0);
        } else
        {
            obj = null;
        }
        return obj;
    }

    public boolean b(Object obj)
    {
        Vector vector = a;
         
        boolean flag = a.removeElement(obj);
        return flag;
    }

    public Object c()
    {
        Vector vector = a;
        
        Object obj;
        if(a.size() > 0)
            obj = a.elementAt(0);
        else
            obj = null;
        return obj;
    }

    public boolean c(Object obj)
    {
        Vector vector = a;
        
        boolean flag = a.contains(obj);
        return flag;
    }

    public int d()
    {
        return a.size();
    }

    public void e()
    {
        Vector vector = a;
         
        a.notifyAll();
        return;
    }

    public void f()
    {
        Vector vector = a;
        
        a.removeAllElements();
        a.notifyAll();
        return;
    }

    public void g()
    {
        Vector vector = a;
        
        Exception exception1;
        try
        {
            a.wait();
        }
        catch(Exception exception) { }
        
        return;
        
    }

    protected Vector a;
}
